package class2;

public class Person {
    public Person (){

    }
    public Person(String Name,int age){
        setAge(age);
        setName(Name);
    }
    private String Name;
    private int age;

    public void setAge(int age) {
        this.age = age;
    }

    public int getAge() {
        return age;
    }

    public String getName() {
        return Name;
    }
    public void setName(String name) {
        Name = name;
    }
    public void show (){
        System.out.println("我是"+this.Name+"今年"+this.age+"岁");
    }
    public static void main(String[] args) {

    }
}
